﻿using System;
using System.Collections.Generic;
using System.Text;

namespace search.tradetuber.com
{
    public enum WhichIndexLibrary
    {
        IndexBuyingLeads,
        IndexProducts,
        IndexAdvertising
    }

    public enum SearchType
    {
        Product,
        Sellinglead,
        Sampledeal,
        Buyinglead,
        Company,
        BusinessZoneUser,
        Advertising
    }

    public enum IndexLibraryField
    {
        ItemID = 0,
        ItemType = 1,
        ItemSubject = 2,
        ItemKeyword = 3,
        ItemContent = 4,
        ItemImage = 5,
        ItemCreateTime = 6,
        ItemUpdateTime = 7,
        ItemExpiryTime = 8,
        ItemState = 9,
        ItemClickTimes = 10,
        CompanyID = 11,
        SimpleName = 12,
        CompanyName = 13,
        CompanyDescription = 14,
        CompanyLogo = 15,
        CompanyAddress = 16,
        CompanyPost = 17,
        CompanySite = 18,
        CompanyType = 19,
        CompanyPersonnel = 20,
        CompanyIncome = 21,
        CompanyTel = 22,
        CompanyFax = 23,
        CompanyCEO = 24,
        CompanyClickTimes = 25,
        CompanyCreateTime = 26,
        CompanyAddTime = 27,
        IsShowComment = 28,
        InBlackList = 29,
        IsClose = 30,
        IsVipBuyer = 31,
        CreditIndex = 32,
        Sex = 33,
        ContactName = 34,
        UserLogo = 35,
        UserJob = 36,
        UserTel = 37,
        UserFax = 38,
        ContactOnline = 39,
        MainClassID = 40,
        MainClassName = 41,
        SubClassID = 42,
        SubClassName = 43,
        CountryID = 44,
        CountryName = 45,
        //以下为广告索引库特殊参数
        ID = 46,
        Photo = 47,
        Keyword = 48,
        Url = 49,
        Height = 50,
        Expiratoin = 51,
        Createtime = 52
    }

    public enum SearchTemplate
    {
        SearchResultForBuyingLeads,
        SearchResultForProducts,
        SearchResultForProductsGallery,
        SearchResultForSupplier
    }

    public enum TermCacheName
    {
        CompanyID,
        CreditIndex,
        ItemCreateTimeP,
        ItemCreateTimeB,
        None
    }

    public enum TermName
    {
        CompanyID,
        CreditIndex,
        ItemCreateTime,
        None
    }

    public enum GroupByField
    {
        CompanyID,
        NotGroup
    }
}
